home *** CD-ROM | disk | FTP | other *** search
Text File | 1995-09-07 | 12.6 KB | 486 lines | [TEXT/MPS ] |
- /* ProjectDrag.r: Resources used by each applet in ProjectDrag
- * Mutated from DropShell.r.
- *
- * A set of applets for drag and drop source control by Tim Maroney.
- * See develop, issue 23 for details.
- *
- * Built on DropShell by Leonard Rosenthol, Stephan Somogyi, and Marshall Clow,
- * and using the MoreFiles utilities by Jim Luther.
- *
- * This software is free, but don't modify and redistribute it without
- * changing the status window to indicate your name and your changes!
- */
-
-
- #define SystemSevenOrLater 1
- #include "Types.r"
- #include "SysTypes.r"
- #include "BalloonTypes.r"
-
- /*
- These are the help resources for the menus.
- */
- resource 'hmnu' (128, purgeable) { /* Apple */
- HelpMgrVersion, 0, 0, 0,
- HMSkipItem { /* no missing items */ },
- { /* array HMenuArray: 2 elements */
- HMSkipItem { /* skip the menu title */ },
- HMStringResItem { /* About Item */
- 128, 1,
- 128, 1,
- 0, 0,
- 0, 0
- }
- }
- };
-
- /* How about the About box? */
- resource 'ALRT' (128, purgeable) {
- {75, 79, 198, 354}, 128,
- { /* array: 4 elements */
- /* [1] */ OK, visible, silent,
- /* [2] */ OK, visible, silent,
- /* [3] */ OK, visible, silent,
- /* [4] */ OK, visible, silent
- },
- alertPositionMainScreen
- };
-
- /*
- This is the help resource for the about box.
- */
- resource 'hdlg' (128, purgeable) {
- HelpMgrVersion, 0, hmSaveBitsNoWindow, 0, 3, /* need bits saved in Alert, since the OK ring & icons are not updated */
- HMSkipItem { /* no missing items */ },
- {
- HMStringResItem { /* OK button */
- {0,0}, /* default tip */
- {0,0,0,0}, /* alternate rect */
- 128, 2, /* res ID's as normal */
- 0, 0,
- 0, 0,
- 0, 0
- },
- HMStringResItem { /* StatText */
- {0,0}, /* default tip */
- {0,0,0,0}, /* alternate rect */
- 0, 0,
- 128, 3, /* stat text is disabled! */
- 0, 0,
- 0, 0
- }
- }
- };
-
- /* Error Alert Stuff */
- resource 'ALRT' (200, purgeable) { /* generic error alert */
- {100, 120, 224, 452}, 200,
- { /* array: 4 elements */
- /* [1] */ OK, visible, silent,
- /* [2] */ OK, visible, silent,
- /* [3] */ OK, visible, silent,
- /* [4] */ OK, visible, silent
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (200, purgeable) {
- { /* array DITLarray: 4 elements */
- /* [1] */ {92, 246, 112, 318}, Button { enabled, "Whoops!" },
- /* [2] */ {11, 73, 75, 318}, StaticText { disabled, "^0" },
- /* [3] */ {11, 11, 43, 43}, Icon { disabled, 0 },
- /* [4] */ {96, 11, 112, 100}, StaticText { disabled, "Error: ^1" }
- }
- };
-
-
- /*
- This is the help resource for the ErrorAlert above.
- */
- resource 'hdlg' (200, purgeable) {
- HelpMgrVersion, 0, hmSaveBitsNoWindow, 0, 3, /* need bits saved in Alert, since the OK ring & icons are not updated */
- HMSkipItem { /* no missing items */ },
- {
- HMStringResItem { /* OK button */
- {0,0}, /* default tip */
- {0,0,0,0}, /* alternate rect */
- 200, 1, /* res ID's as normal */
- 0, 0,
- 0, 0,
- 0, 0
- },
- HMStringResItem { /* StatText - error message*/
- {0,0}, /* default tip */
- {0,0,0,0}, /* alternate rect */
- 0, 0,
- 200, 2, /* stat text is disabled! */
- 0, 0,
- 0, 0
- },
- HMSkipItem { /* icon */ },
- HMStringResItem { /* StatText - error ID*/
- {0,0}, /* default tip */
- {0,0,0,0}, /* alternate rect */
- 0, 0,
- 200, 3, /* stat text is disabled! */
- 0, 0,
- 0, 0
- },
- }
- };
-
-
- resource 'ALRT' (202, purgeable) { /* Confirm alert -- yes/no/cancel */
- {100, 120, 254, 452}, 202,
- { /* array: 4 elements */
- /* [1] */ OK, visible, silent,
- /* [2] */ OK, visible, silent,
- /* [3] */ OK, visible, silent,
- /* [4] */ OK, visible, silent
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (202, purgeable) {
- { /* array DITLarray: 5 elements */
- /* [1] */ {121, 246, 141, 318}, Button { enabled, "Yes" },
- /* [2] */ {121, 11, 141, 83}, Button { enabled, "Cancel" },
- /* [3] */ {11, 73, 75, 318}, StaticText { disabled, "^0" },
- /* [4] */ {11, 11, 43, 43}, Icon { disabled, 0 },
- /* [5] */ {121, 155, 141, 227}, Button { enabled, "No" },
- /* [6] */ {91, 155, 111, 318}, CheckBox { enabled, "Same answer for all…" }
- }
- };
-
-
- resource 'DLOG' (203) { /* user settings dialog */
- {40, 40, 212, 372}, dBoxProc, invisible, goAway, 0x0, 203, "",
- alertPositionMainScreen
- };
-
- resource 'DITL' (203, purgeable) {
- { /* array DITLarray: 8 elements */
- /* [1] */ {143, 247, 163, 319}, Button { enabled, "OK" },
- /* [2] */ {143, 156, 163, 228}, Button { enabled, "Cancel" },
- /* [3] */ {11, 73, 64, 318},StaticText { disabled,
- "Please enter your user name, and your initials "
- "or a nickname for change comments." },
- /* [4] */ {11, 9, 43, 41}, Icon { disabled, 0 },
- /* [5] */ {85, 9, 101, 165}, StaticText { disabled, "User Name:" },
- /* [6] */ {112, 9, 128, 165}, StaticText { disabled, "Initials or Nickname:" },
- /* [7] */ {86, 176, 102, 316}, EditText { enabled, "Joe Schmoe" },
- /* [8] */ {112, 176, 128, 316}, EditText { enabled, "js" }
- }
- };
-
- resource 'DLOG' (204) { /* Change comment dialog */
- {40, 40, 272, 372}, dBoxProc, invisible, goAway, 0x0, 204, "",
- alertPositionMainScreen
- };
-
-
- resource 'DITL' (204, purgeable) {
- { /* array DITLarray: 5 elements */
- /* [1] */ {203, 247, 223, 319}, Button { enabled, "OK" },
- /* [2] */ {203, 156, 223, 228}, Button { enabled, "Cancel" },
- /* [3] */ {11, 73, 64, 318}, StaticText { disabled, "^0" },
- /* [4] */ {11, 9, 43, 41}, Icon { disabled, 0 },
- /* [5] */ {75, 10, 191, 317}, EditText { enabled, "" }
- }
- };
-
-
- resource 'ALRT' (206, purgeable) { /* Confirm alert -- yes/no */
- {100, 120, 254, 452}, 206,
- { /* array: 4 elements */
- /* [1] */ OK, visible, silent,
- /* [2] */ OK, visible, silent,
- /* [3] */ OK, visible, silent,
- /* [4] */ OK, visible, silent
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (206, purgeable) {
- { /* array DITLarray: 5 elements */
- /* [1] */ {121, 246, 141, 318}, Button { enabled, "Yes" },
- /* [2] */ {121, 158, 141, 230}, Button { enabled, "No" },
- /* [3] */ {11, 73, 75, 318}, StaticText { disabled, "^0" },
- /* [4] */ {11, 11, 43, 43}, Icon { disabled, 0 },
- /* [5] */ {91, 158, 111, 318}, CheckBox { enabled, "Same answer for all…" }
- }
- };
-
-
- resource 'ALRT' (207, purgeable) { /* generic error alert */
- {100, 120, 284, 452}, 207,
- { /* array: 4 elements */
- /* [1] */ OK, visible, silent,
- /* [2] */ OK, visible, silent,
- /* [3] */ OK, visible, silent,
- /* [4] */ OK, visible, silent
- },
- alertPositionMainScreen
- };
-
- resource 'DITL' (207, purgeable) {
- { /* array DITLarray: 3 elements */
- /* [1] */ {152, 246, 172, 318}, Button { enabled, "Heck!" },
- /* [2] */ {11, 73, 135, 318}, StaticText { disabled, "^0" },
- /* [3] */ {11, 11, 43, 43}, Icon { disabled, 0 },
- /* [4] */ {156, 11, 172, 100}, StaticText { disabled, "^1" }
- }
- };
-
-
- /* the status dialog */
-
- resource 'DLOG' (210) {
- {40, 40, 136, 390},
- noGrowDocProc, invisible, noGoAway, 0x0, 210, "",
- centerMainScreen
- };
-
- resource 'DITL' (210) {
- { /* array DITLarray: 3 elements */
- /* [1] */
- {8, 15, 44, 338},
- StaticText {
- disabled,
- "Stop reading source code and go get some work done."
- },
- /* [2] */
- {53, 14, 87, 70},
- StaticText {
- disabled,
- "Status:"
- },
- /* [3] */
- {53, 75, 87, 338},
- StaticText {
- disabled,
- "idle…"
- }
- }
- };
-
-
- resource 'DLOG' (205) { /* diagnostic dialog */
- {40, 40, 290, 370},
- dBoxProc, invisible, goAway, 0x0, 205, "", alertPositionMainScreen
- };
-
-
- resource 'DITL' (205, purgeable) { /* diagnostic dialog */
- { /* array DITLarray: 5 elements */
- /* [1] */ {223, 247, 243, 319}, Button { enabled, "OK" },
- /* [2] */ {11, 73, 64, 318}, StaticText { disabled, "Drivel." },
- /* [3] */ {11, 9, 43, 41}, Icon { disabled, 0 },
- /* [4] */ {75, 10, 211, 302}, UserItem { disabled },
- /* [5] */ {75, 301, 211, 317}, Control { enabled, 205 }
- }
- };
-
-
- resource 'CNTL' (205, purgeable) {
- {75, 301, 211, 317}, 0, visible, 0, 0, 16, 0, ""
- };
-
-
- /* standard file dialog with a prompt */
-
- resource 'DLOG' (212, purgeable) {
- {0, 0, 210, 344},
- dBoxProc,
- invisible,
- noGoAway,
- 0x0,
- 212,
- "",
- noAutoCenter
- };
-
-
- resource 'DITL' (212, purgeable) {
- { /* array DITLarray: 10 elements */
- /* [1] */
- {176, 252, 196, 332},
- Button {
- enabled,
- "Open"
- },
- /* [2] */
- {145, 252, 165, 332},
- Button {
- enabled,
- "Cancel"
- },
- /* [3] */
- {0, 0, 0, 0},
- HelpItem {
- disabled,
- HMScanhdlg {
- -6042
- }
- },
- /* [4] */
- {49, 235, 65, 337},
- UserItem {
- enabled
- },
- /* [5] */
- {73, 252, 93, 332},
- Button {
- enabled,
- "Eject"
- },
- /* [6] */
- {101, 252, 121, 332},
- Button {
- enabled,
- "Desktop"
- },
- /* [7] */
- {70, 12, 200, 230},
- UserItem {
- enabled
- },
- /* [8] */
- {47, 12, 66, 230},
- UserItem {
- enabled
- },
- /* [9] */
- {132, 251, 133, 333},
- Picture {
- disabled,
- 11
- },
- /* [10] */
- {5, 12, 40, 336},
- StaticText {
- disabled,
- "^0"
- }
- }
- };
-
-
- resource 'STR#' (100) { /* error alert messages! */
- { /* array StringArray: 1 elements */
- /* [1] */ "This application requires Apple events. Please upgrade to System 7.0 or later to use.",
- /* [2] */ "An error occured during Apple event processing."
- }
- };
-
- resource 'STR#' (101) { /* useful strings */
- { /* array StringArray: 1 elements */
- /* [1] */ "ProjectDrag Preferences",
- /* [2] */ "User Settings",
- /* [3] */ "what you changed in",
- /* [4] */ "what you expect to do with",
- /* [5] */ "Your name and initials could not be determined.",
- /* [6] */ "Projector information could not be retrieved from “<1>”.",
- /* [7] */ "The project “<1>” could not be found.",
- /* [8] */ "An error occured during the Projector command.",
- /* [9] */ "The Projector command succeeded with this result: ",
- /* [10] */ "idle…",
- /* [11] */ "mounting project “<1>”",
- /* [12] */ "<1>: An applet from ProjectDrag.\nWritten by Tim Maroney.",
- /* [13] */ "A change header could not be found in “<1>”. Do you want to add one?",
- /* [14] */ "Sorry, an error occurred while <1>.\n\n<2>",
- /* [15] */ "first checked in",
- /* [16] */ "searching for SourceServer",
- /* [17] */ "The change comment could not be added to “<1>”.",
- /* [18] */ "Please enter a comment explaining <1> “<2>”.",
- /* [19] */ "Do you really want to discard changes to “<1>”?",
- /* [20] */ "“<1>” isn't checked out or modify-read-only, so it can't be checked in.",
- /* [21] */ "“<1>” is already checked out or modify-read-only, so it can't be checked out.",
- /* [22] */ "“<1>“ is already checked out or modify-read-only, so it can't be made modify-read-only.",
- /* [23] */ "The preferences file could not be written, but we can work with the settings you entered.",
- /* [24] */ "getting your user name and nickname",
- /* [25] */ "adding the change comment to “<1>”",
- /* [26] */ "looking for the project",
- /* [27] */ "Please select a ProjectorDB file with which you wish to work.",
- /* [28] */ "The Projector database could not be found. Please select one…",
- /* [29] */ "The change comment could not be added to “<1>”. Do you want to cancel the modify-read-only mark?",
- /* [30] */ "The change comment could not be added to “<1>”. Do you want to cancel the checkout?",
- /* [31] */ "Folder Names",
- /* [32] */ "“<1>” is not part of the project. Do you want to add it?",
- /* [33] */ "“<1>” isn't checked out or modify-read-only, so it can't be canceled.",
- /* [34] */ "The external checkin of “<1>” failed. Do you want to cancel the checkout of the original?",
- /* [35] */ "“<1>” doesn't appear to be checked out (but it might be). Do you want to try to cancel the checkout anyway?",
- /* [36] */ "Previous Comment",
- }
- };
-
- data 'Comm' (1) {
- "<comment start>"
- "<line start>\tFile:\t\t<file name><line end>\n"
- "<blank line>\n"
- "<line start>\tContains:\t<contents><line end>\n"
- "<blank line>\n"
- "<line start>\tWritten by:\t<user name><line end>\n"
- "<blank line>\n"
- "<line start>\tCopyright:\t<copyright><line end>\n"
- "<blank line>\n"
- "<line start>\tChange History (most recent first):<line end>\n"
- "<blank line>\n"
- };
-
- data 'Comm' (2) {
- "<line start>\t\t<<revision>>\t <date>\t<nickname>\t<comment><line end>\n"
- };
-
- resource 'vers' (1) {
- 0x01, /* major revision */
- 0x01, /* minor revision */
- beta,
- 0x08, /* non-final release version */
- verUS, /* country code */
- "1.1b8", /* short vers string */
- "ProjectDrag 1.1b8 by Tim Maroney"
- };
-
- resource 'SIZE' (-1) {
- reserved,
- acceptSuspendResumeEvents,
- reserved,
- canBackground,
- multiFinderAware,
- backgroundAndForeground,
- dontGetFrontClicks,
- ignoreChildDiedEvents,
- is32BitCompatible,
- isHighLevelEventAware,
- localAndRemoteHLEvents,
- notStationeryAware,
- dontUseTextEditServices,
- reserved,
- reserved,
- reserved,
- 102400,
- 102400
- };
-
- resource 'SIZE' (0) {
- reserved,
- acceptSuspendResumeEvents,
- reserved,
- canBackground,
- multiFinderAware,
- backgroundAndForeground,
- dontGetFrontClicks,
- ignoreChildDiedEvents,
- is32BitCompatible,
- isHighLevelEventAware,
- localAndRemoteHLEvents,
- notStationeryAware,
- dontUseTextEditServices,
- reserved,
- reserved,
- reserved,
- 102400,
- 102400
- };
-